package com.firebird.app.fekpsl.bean

import com.squareup.moshi.Json
import org.litepal.crud.LitePalSupport
import java.io.Serializable

/**
 * Created by firebird on 2018/4/21.
 */
//wall body
data class WallResponseBody(
        @Json(name = "curPage") val curPage: Int,
        @Json(name = "datas") var datas: MutableList<Wall>,
        @Json(name = "offset") val offset: Int,
        @Json(name = "over") val over: Boolean,
        @Json(name = "pageCount") val pageCount: Int,
        @Json(name = "size") val size: Int,
        @Json(name = "total") val total: Int
)

//wall
data class Wall(
        @Json(name = "id") val id: Int,
        @Json(name = "user_uuid") val user_uuid: String,
        @Json(name = "exam_subject_id") val exam_subject_id: Int,
        @Json(name = "create_time") val create_time: String,
        @Json(name = "message") val message: String,
        @Json(name = "read_num") val read_num: Int,
        @Json(name = "comment_num") var comment_num: Int,
        @Json(name = "avatar_text") val avatar_text: String,
        @Json(name = "nice_name") val nice_name: String,
        @Json(name = "real_name") val real_name: String,
        @Json(name = "is_explicit") val is_explicit: Int,
        @Json(name = "name") val name: String
)
//
data class WallCommentResponseBody(
        @Json(name = "curPage") val curPage: Int,
        @Json(name = "datas") var datas: MutableList<WallComment>,
        @Json(name = "offset") val offset: Int,
        @Json(name = "over") val over: Boolean,
        @Json(name = "pageCount") val pageCount: Int,
        @Json(name = "size") val size: Int,
        @Json(name = "total") val total: Int
)

//wall
data class WallComment(
        @Json(name = "id") val id: Int,
        @Json(name = "wall_id") val wall_id: Int,
        @Json(name = "user_uuid") val user_uuid: String,
        @Json(name = "comment") val comment: String,
        @Json(name = "create_time") val create_time: String,
        @Json(name = "nice_name") val nice_name: String,
        @Json(name = "real_name") val real_name: String,
        @Json(name = "is_explicit") val is_explicit: Int,
        @Json(name = "name") val name: String
)
//wall
data class WallReader(
        @Json(name = "id") val id: Int,
        @Json(name = "wall_id") val wall_id: Int,
        @Json(name = "user_uuid") val user_uuid: String,
        @Json(name = "avatar_text") val avatar_text: String
)
